package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 题库基本信息实体类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/1/21</td>
 * <td>lanwei</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author lanwei
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName(value = "ASSISTANT_QUESTION_BANK")
public class QuestionBank implements  Serializable{


	private static final long serialVersionUID = -4404364182927938668L;
	/**
	 * 题库id
	 */
	@TableId(value = "QUESTION_BANK_ID", type = IdType.ASSIGN_UUID)
	private String questionBankId;
	/**
	 * 题库名称
	 */
	@TableField(value = "QUESTION_BANK_NAME")
	private String questionBankName;
	/**
	 * 题库类型
	 */
	@TableField(value = "QUESTION_BANK_TYPE")
	private String questionBankType;
	/**
	 * 题库描述
	 */
	@TableField(value = "QUESTION_BANK_DESCRIPTION")
	private String questionBankDescription;
	
	/**
	 * 创建用户ID
	 */
	@TableField(value = "CREATE_USER_ID")
	private String createUserId;
	
	/** 
	 * 题库包含试题数量 
	 * */
	@TableField(value = "EXAMINATION_QUESTION_NUMBER")
	private Integer examinationQuestionNumber;
	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CREATE_TIME")
	private Date createTime;
	/**
	 * 修改用户ID
	 */
	@TableField(value = "UPDATE_USER_ID")
	private String updateUserId;
	/**
	 * 修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "UPDATE_TIME")
	private Date updateTime;
	/**
	 * 是否删除
	 */
	@TableField(value = "IS_DELETE")
	private Boolean isDelete;
	/**
	 * 备注
	 */
	@TableField(value = "MEMO")
	private String memo;

}
